package com.lp.acc;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author: lp
 * @create: 2024-01-25 22:44
 * @description:
 */
public class MyApplicationContext extends ClassPathXmlApplicationContext {

	public MyApplicationContext(String ... path){
		super(path);
	}

	@Override
	//设置环境变量必须有，容器初始化时会校验
	protected void initPropertySources() {
		getEnvironment().setRequiredProperties("LP_HOME");
	}
}
